package org.flowable;

import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.JavaDelegate;

import java.util.Map;

public class CallExternalSystemDelegate implements JavaDelegate {
    @Override
    public void execute(DelegateExecution execution) {
        System.out.println("CallExternalSystemDelegate start");
        Map<String, Object> variables = execution.getVariables();
        for (String key : variables.keySet()) {
            System.out.println(key + " == " + variables.get(key));
        }
        System.out.println(execution.getCurrentActivityId() + "      " + execution.getId() + "   " + execution.getExecutions() + "   "  + execution.getEventName());

        System.out.println("CallExternalSystemDelegate end");
    }
}
